package com.guli.vod;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zxc
 * @date 2023/04/08 16:45
 **/
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
// 设置包扫描规则
@ComponentScan(basePackages = {"com.guli"})
@EnableDiscoveryClient // 使得当前service-vod微服务模块，能够被nacos注册中心所发现
public class VodApplication {

    public static void main(String[] args) {
        SpringApplication.run(VodApplication.class , args);
    }
}
